home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PORTABLE.ZIP
/
BOX.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
2KB
|
48 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef box
#ifndef NDEBUG
char *rcsid_box = "$Header: c:/curses/portable/RCS/box.c%v 2.0 1992/11/15 03:28:51 MH Rel $";
#endif
/*man-start*********************************************************************
box() - draw box
X/Open Description:
A box is drawn around the edge of the window. The characters
vert and hor are the characters used to draw the box. If vert or
hor are zero, then appropriate default characters will be used.
PDCurses Description:
See border() for additional control over the sides and corners
of the box drawn.
X/Open Return Value:
The box() function returns OK on success and ERR on error.
PDCurses Errors:
No errors are defined for these functions.
Portability:
PDCurses int box( WINDOW* win, chtype vert, chtype hor );
X/Open Dec '88 int box( WINDOW* win, chtype vert, chtype hor );
BSD Curses int box( WINDOW* win, chtype vert, chtype hor );
SYS V Curses int box( WINDOW* win, chtype vert, chtype hor );
**man-end**********************************************************************/
int box( WINDOW *win, chtype vert, chtype hor )
{
if (!vert || !hor) /*
{ * SYSV Fix Courtesy of Augustine Cano
vert= ACS_VLINE;* afc@shibaya.lonestar.org
hor = ACS_HLINE;* 19920520
} */
return( wbox( win, 0, 0, 0, 0, vert, hor ) );
}